package com.hua.api.modules.huawa.dao;

import com.hua.api.core.framework.statement.EntityManagerTemplate;
import com.hua.api.core.framework.statement.Statement;
import com.hua.api.core.framework.statement.mysql.StatementFactoryImpl;
import com.hua.api.modules.huawa.domain.HuawaOrderInfo;
import com.hua.api.modules.order.domain.OrderInfo;
import com.hua.api.modules.order.domain.OrderItems;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class HuawaOrderInfoDao extends EntityManagerTemplate {

    public HuawaOrderInfo findOrderInfoWithOrderNo(String orderId){
        Statement stms = StatementFactoryImpl.getInstance().createStatement(" from HuawaOrderInfo o where o.huawaOrderId=?1");
        stms.addParam(orderId);
        return findObject(stms,OrderInfo.class);
    }




}
